<h1><?php echo __('Categories'); ?></h1>
<?php if ($categories->count() > 0) : ?>
<div id="list">
    <ul>
    <?php foreach ($categories as $category) : ?>
        <?php include_partial('category/list',array('category'=>$category)); ?>
    <?php endforeach;?>
    </ul>
</div>
<?php endif; ?>
<?php echo link_to(__('new'), 'category/edit'); ?>